package com.shop.order.service;

import com.shop.Result.LdbzResult;
import com.shop.pojo.LdbzCart;
import com.shop.pojo.LdbzOrder;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderService {
    LdbzResult countOrder(LdbzOrder entity);

    LdbzResult getOrderPage(LdbzOrder entity , int pn , int limit) ;

    LdbzResult selectByKey(Long id);

    LdbzResult deleteByKey(String id);

    LdbzResult updateStatusByKey(LdbzOrder entity);

    boolean generateOrder(String userCookieValue, List<LdbzCart> cookieItems, String orderItemCodes, String orderNums,
                          String address, float shippingPrice);
}
